#ifndef __GLOBAL_CONF_H__
#define __GLOBAL_CONF_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    xFAILED  = 1,
    xERROR   = 1,
    xSUCCESS = 0,
    xPASSED  = 0,
} xRET_CODE_TYPE;

#ifdef mem_malloc
    /*
     * Through out an error compile
     */
     #error mem_malloc defined!
#else
#define mem_malloc( size )       pvPortMalloc (size)
#endif

#ifdef mem_free
    /*
     * Through out an error compile
     */
     #error mem_free defined!
#else
#define mem_free ( address )      pvPortFree (address)
#endif

#ifdef __cplusplus
}
#endif
#endif // __GLOBAL_CONF_H__
